<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        .back {
            width: 100%;
            height: 50px;
            border-top: 1px transparent solid;
            background-color: skyblue;
        }

        .search input {
            width: 80%;
            height: 30px;
            display: block;
            margin: auto;
            margin-top: 10px;
            background-color: #999;
            border-radius: 10px;
            outline: none;
            border: none;
        }

        .kongbai{
            width: 100%;
            height: 100px;
            background-color: pink;
            background-image: url(pic.png) ;
             background-size:contain;
             margin: 10px 0;
        }
        #choice{
             width: 100%;
             display: flex;
             flex-wrap: wrap;
             height: 30px;
             justify-content: center;
             margin-top: 10px;
             font-size: 14px;
        }
        #choice .paixu{
            width: 23%;
            /* padding: 5px; */
            text-align: center;
            /* background-color: #999; */
            flex-shrink: 1;
        }

        #choice .hot{
            width: 23%;
            margin:10px 2px;
            font-size: 13px;
            
            background-color: #f5f5f5;
        }
        #choice .active {
            color: red;
            /* width: 25%; */
            /* background-color: #ccc; */
        }

        .tabber {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px;
            display: flex;
            justify-content: space-around;
            text-align: center;
            line-height: 40px;
            border-top: 1px solid #ccc;
        }

        .tabber .active {
            color: white;
            /* width: 25%; */
            background-color: #ccc;
        }


        #home .main{
            width: 100px;
            height: 100px;
            /* margin-top: 20px; */
        }
        #home .main img{
            width: 100%;
        }
        .home-div{
            width: 100%;
            height: 100px;
            background-color: #999;
            border-top: 1px solid transparent;
            margin-top: 30px;
            display: flex;
        }
        .right{
          padding-left: 20px;
        }
    </style>
</head>

<body>
    <div class="back">
        <div class="search">
            <input type="text" placeholder="搜索商家  商品名称">
        </div>
    </div>
<!-- 空白区域 -->
    <div class="kongbai"></div>
    <!--  -->
    <h3>猜你喜欢</h3>

<!-- 综合排序模块 -->

<div id="choice">
    <div class="paixu" :class="{active: saveindex == index }" v-for="(item,index) in searchArr" @click="Click(index)">{{item}}</div>
    <div class="paixu hot" v-for="(item,index) in Arr">{{item}}</div>
</div>


<div id="home" >
   <div class="home-div" v-for="(item,index) in Arr">
    <div class="main"><img :src="item.image" alt="" class="main"></div>
    <div class="right">
        <h2 class="value">{{item.value}}</h2>
        <p class="month">月售{{item.month}}</p>
        <p class="time">{{item.time}}分钟送达</p>
        <p class="connent">{{item.connent}}</p>

    </div>
   </div>
</div>

<div id="app">
    <div class="tabber">

        <div class="btn" :class="{active: saveindex == index }" @click="Click(index)" v-for="(item,index) in list">
            <div class="name">{{item.name}}</div>
        </div>
    </div>
</div>
</body>

</html>
<script src="vue-2.5.21.js"></script>
<script src="作业.js"></script>